<div>

<?php foreach($list as $key=>$row):?>
	
		<h3>1.<?php echo ($key+1);?> <?php echo $row['name'];?></h3>
	<div style="margin-left:30px;">
		<?php 
			foreach($row['list'] as $k=>$val):
			$id = '1.'.($key+1).'.'.($k+1);
		?>
		
		<h5><?php echo ($key+1);?>.<?php echo ($k+1);?> <?php echo isset($val['name'])?$val['name']:'未编辑';?></h5>
		<div style="font-size:14px;margin-left:30px;">
			<span class="tit">1.接口地址：</span><?php echo $val['func_name'];?>
			<br>
			<span class="tit">2.请求方法：</span>POST
			<br>
			<span class="tit">3.匿名访问：</span>是
			<br>
			<span class="tit">4.请求参数：</span>
			<table style="width:500px;" border="1" width="500">
				<tr>
					<th>参数名称</th>
					<th>类型</th>
					<th>是否必须</th>
					<th>参数说明</th>
				</tr>
				<?php if(isset($val['param'])):
					foreach($val['param'] as $params): ?>
				<tr>
					<td><?php echo isset($params[0])?$params[0]:'';?></td>
					<td><?php echo isset($params[2])?$params[2]:'';?></td>
					<td><?php $is_tx = isset($params[1])?$params[1]:'false'; echo $is_tx=='true'?'是':'否';?></td>
					<td><?php echo isset($params[3])?$params[3]:'';?></td>
				</tr>
				<?php endforeach;?>
				<?php endif;?>
			</table>
		</div>
		<?php endforeach;?>
		
	<br>
	</div>
<?php endforeach;?>
</div>


<style>
table,table tr th, table tr td { border:1px solid #333; }
table { width: 200px; min-height: 25px; line-height: 25px; text-align: center; border-collapse: collapse;} 
ul{list-style: none;}
*{line-height:22px;}
</style>